﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class HangHoaBUS
    {

        public static bool Sua(HangHoa aCT)
        {
            return HangHoaDAO.Sua(aCT);
        }

        public static bool RutHangTrenQuay(int soluong, string ma)
        {
            return HangHoaDAO.RutHangTrenQuay(soluong, ma);
        }

        public static HangHoa TimTheoId(int id)
        {
            return HangHoaDAO.TimTheoId(id);
        }

        public static List<HangHoa> TimKiem(string MaHH)
        {
            return HangHoaDAO.TimKiem(MaHH);
        }


        public static bool Them(HangHoa aCT)
        {
            return HangHoaDAO.Them(aCT);
        }

        public static bool Xoa(int maCT)
        {
            return HangHoaDAO.Xoa(maCT);
        }

        public static List<thongketheospResult> LayDSTheoSP(int id)
        {
            return HangHoaDAO.LayDSTheoSP(id);
        }

        public static List<HangHoa> LayDS()
        {
            return HangHoaDAO.LayDS();
        }
    }
}
